<template>
  <div>
    <el-result icon="success" title="发布成功" subTitle="去主页看看去？">
      <template slot="extra">
        <el-button type="primary" size="medium" @click="toHomePage">主页</el-button>
      </template>
    </el-result>
  </div>
</template>

<script>
export default {
  name: "Result",
  methods:{
    toHomePage(){
      this.$router.push('/');
    }
  }
}
</script>

<style scoped>

</style>
